import request from '@/plugins/request'
import { IResponseData } from '@/types/request-base'
import { json2FormData } from '@/utils'

// 经销商门店业务变更

/**
 * 经销商业务变更-提交
 * @param {Array} data
 */
export function submitChange(data: any) {
  return request<IResponseData>({
    method: 'PUT',
    url: `/app/v1/ctmCustomerChange/shopBusiness/submit`,
    data,
    loading: true
  })
}

/**
 * 经销商门店业务变更详情
 * @param {string} ID
 */
export function detail(id: string) {
  return request<IResponseData>({
    method: 'get',
    url: `/app/v1/ctmCustomerChange/detail/shopBusiness/${id}`,
    loading: true
  })
}
